// sku模块的接口
import request from '@/utils/bradn-request'

// 获取SKU列表的数据 /admin/product/list/{page}/{limit} get
export const reqSkuList = (page, limit) => request.get(`/admin/product/list/${page}/${limit}`)

// 上架 /admin/product/onSale/{skuId} get
export const reqOnSale = (skuId) => request.get(`/admin/product/onSale/${skuId}`)

// 下架 /admin/product/cancelSale/{skuId} get
export const reqCancelSale = (skuId) => request.get(`/admin/product/cancelSale/${skuId}`)

// 获取sku详情 /admin/product/getSkuById/{skuId} get
export const reqGetSkuById = (skuId) => request.get(`/admin/product/getSkuById/${skuId}`)